package com.designpattern.softwaredesignpatternstudy.pattern.proxy.application;

/**
 * @Author: Jiangxx
 * @Date: 2022/03/11
 * @Description:
 */
public class SgProxy implements Specialty{

    private WySpecialty WySpecialty = new WySpecialty();

    public void preRequest() {
        System.out.println("SgProxy代理之前");
    }

    public void postRequest() {
        System.out.println("SgProxy代理之后");
    }
    @Override
    public void display() {
        preRequest();
        WySpecialty.display();
        postRequest();
    }
}
